<tc_include file="Public:head"/>

<body ontouchstart style="background: #3c3c3c;">
<div class="container" id="container">
    <div class="page">
        <div class="page__bd" style="height: 100%; overflow: hidden;">
            <div class="weui-tab">
                <div class="weui-tab__panel">
                    <header class="weui-bar-nav member-header" style="display: none">
                        <a href="javascript:void(0)" class="icon iconfont icon-back full-left"></a>
                    </header>
                    <div class="self-box">
                        <!--用户头像名称-->
                        <div class="member-header">
                            <img src="{$member['head_img']}" alt="">
                            <h4>{$member['nickname']}</h4>
                        </div>
                        <!--用户头像名称 end-->
                        <!--二维码&编码&copy-->
                        <div class="code-box">
                            <div id="qrcode" style="text-align: center;"></div>
                            <p>{$member['member_code_show']}</p>
                            <i class="icon iconfont icon-logo"></i>
                            <span>夏都小镇会员积分系统</span>
                        </div>
                        <!--二维码&编码&copy end-->
                    </div>
                </div>

                <tc_include file="Public:menu"/>
            </div>
        </div>
    </div>
</div>
<tc_include file="Public:footer"/>
<script src="__TMPL__Public/assets/js/qrcode.min.js"></script>
<script>

    $(function () {
        var qrcode = new QRCode("qrcode", {
            text: "{$member['member_code']}",
            width: 128,
            height: 128,
            colorDark: "#000000",
            colorLight: "#ffffff",
            correctLevel: QRCode.CorrectLevel.H
        });
    });

    $(".icon-back.full-left").click(function () {
        history.go(-1);
    });


</script>
